import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, pageData, updateById} from "@/services/base-request";

export const pageSettingAPI = (params: ParamsType) => {
  return pageData("/sysSetting", params)
}

export const addSettingAPI = (data: API.ISetting) => {
  return addData("/sysSetting", data)
}

export const updateSettingAPI = (data: API.ISetting) => {
  return updateById("/sysSetting", data)
}

export const deleteSettingAPI = (id: string | number) => {
  return deleteById("/sysSetting", id)
}
